package com.wzcl.app.dao.model;

import com.wzcl.app.dao.model.common.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(name = "feedback",
    indexes = {
        @Index(columnList = "provider"),
        @Index(columnList = "type")
    }
)
@ApiModel(value = "用户反馈")
@EntityListeners(AuditingEntityListener.class)
public class Feedback implements Base {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @CreatedDate
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "反馈类容")
    private String content;

    @ApiModelProperty(value = "提供人电话")
    private String provider;

    @ApiModelProperty(value = "处理人电话")
    private String processor;

    @ApiModelProperty(value = "处理人方案")
    private String program;

    @ApiModelProperty(value = "满意度")
    private String Satisfaction;

    @ApiModelProperty(value = "评价")
    private String comment;

    @ApiModelProperty(value = "进度")
    private Integer schedule;

    @ApiModelProperty(value = "问题图片")
    private String img;

    @ApiModelProperty(value = "联系方式")
    private String link;
}
